package org.shangda.wechat.pet.config;

import org.shangda.wechat.pet.util.Constants;
import org.shangda.wechat.pet.util.RedisCacheUtil;
import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import javax.annotation.Resource;


@Component
@Configuration
@EnableScheduling
@Slf4j
public class ScheduleConfig {
    /**
     * schedule lock key
     */


    @Resource
    private RedisCacheUtil redisCacheUtil;



    /**
     *
     * 5分钟执行一次
     */
    @Scheduled(cron = "0 0/5 * * * ?")
    public void dealExpiredOrderSchedule(){
        log.info("dealExpiredOrderSchedule start......");

    }


}
